﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DcsGauges.Shared.DataStructures;

namespace DcsGauges.Shared.Packets
{
    public class CommandsPacket : Packet
    {
        #region Readonly / Constants
        
        public const string                 PACKET_NAME                 = "cmds";
        public const char                   ASSIGNMENT_CHAR             = '=';

        #endregion


        #region Fields / Properties

        public override string  PacketName      { get { return PACKET_NAME; }}
        
        public IList<Tuple<DcsProperty, float>>     Commands            { get; private set; }

        #endregion


        #region Constructors

        public CommandsPacket(DcsProperty property, float value) : base(PacketTypes.Commands)
        {
            this.Commands           = new List<Tuple<DcsProperty, float>>() { new Tuple<DcsProperty, float>(property, value) };
        }

        public CommandsPacket(IList<Tuple<DcsProperty, float>> commands) : base(PacketTypes.Commands)
        {
            this.Commands           = commands;
        }

        #endregion
    }
}
